#include "RBTree.h"

namespace ssy
{
	template<class K>
	class set
	{
		struct SetKOfT
		{
			const K& operator()(const K& k)
			{
				return k;
			}
		};
	public:
		typedef typename ssy::RBTree<K, K, SetKOfT>::iterator iterator;

		iterator begin()
		{
			return _t.begin();
		}

		iterator end()
		{
			return _t.end();
		}

		bool insert(const K& kv)
		{
			return _t.insert(kv);
		}

	private:
		RBTree<K, K, SetKOfT> _t;
	};
}
